package com.qidian.by.pojo.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 戴着假发的程序员
 * @since 2024-05-08
 */
@TableName("buy_item_specification")
public class ItemSpecification implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 规格编号
     */
    @TableId(value = "spe_id", type = IdType.AUTO)
    private Long speId;

    /**
     * 规格名称
     */
    private String speName;

    /**
     * 商品类别创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 商品类别最后修改时间
     */
    private LocalDateTime modifyTime;

    /**
     * 内容类别状态 1 正常 2 禁用
     */
    private Integer status;

    public Long getSpeId() {
        return speId;
    }

    public void setSpeId(Long speId) {
        this.speId = speId;
    }

    public String getSpeName() {
        return speName;
    }

    public void setSpeName(String speName) {
        this.speName = speName;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(LocalDateTime modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "ItemSpecification{" +
            "speId = " + speId +
            ", speName = " + speName +
            ", createTime = " + createTime +
            ", modifyTime = " + modifyTime +
            ", status = " + status +
        "}";
    }
}
